from flask_restful import fields

user_fields = {
    'uid':fields.Integer,
    'account':fields.String,
    'mobile':fields.Integer,
    'nick_name':fields.String,
    'profile_photo':fields.String,
    'last_login':fields.DateTime,
    'address':fields.String,
    'is_superuser':fields.Integer,
    'register_time':fields.DateTime,
    'school':fields.String,
    'occupation':fields.String
}

courses_fields = {
    'id':fields.Integer,
    'course_name':fields.String,
    'course_status':fields.Integer,
    'course_img':fields.String,
    'course_introduce':fields.String,
    'learner':fields.Integer,
    'course_type':fields.String,
    'attention':fields.Integer
}

tag_fields = {
    'id':fields.Integer,
    'tag_name':fields.String,
    'sequence':fields.Integer,
}
tagfields = {
    'id':fields.Integer,
    'course_id':fields.Integer,
    'tag_id':fields.Integer,
}

chapters_fields = {
    'id':fields.Integer,
    'title':fields.String,
    'serial_num':fields.Integer,
    # 'sections':fields.Integer
}

sections_fields = {
    "id":fields.Integer,
    'section_title':fields.String,
    'serial_num':fields.Integer,
    'learn_time':fields.Float,
    'video_url':fields.String,
    'like_count':fields.Integer,
}

comments_fields = {
    'id':fields.Integer,
    'comment_time':fields.DateTime,
    'user':fields.Integer,
    'comment_content':fields.String,
    'zan_num':fields.Integer,
    'parent_id':fields.Integer,
    'replay_count':fields.Integer,
    'is_top':fields.Boolean
}
vip_fields = {
    # 'level':fields.Integer,
    'price':fields.Float,
    'vip_cour':fields.Integer,
    'exempt_cour':fields.Integer,
    'save':fields.Integer,
    'environment': fields.Integer,
    'client':fields.Integer,
    'ssh':fields.Integer,
    "web_ide":fields.Integer,
    'discounts':fields.Integer,
    'exempt_study':fields.Integer
}